import {createThunkAction} from "../../lib/redux-utils";
import {postJson, get} from "../../lib/http";

const path = "/log";
const ACTION_PREFIX = "LOG.";
export const query = createThunkAction(ACTION_PREFIX + "QUERY", params =>
    postJson(path + "/query", params)
);
export const getUserList = createThunkAction(ACTION_PREFIX + "USERS", params =>
    get("/organization/getUsers/" + params)
);
